﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoForLinq.Chapter1
{
    class Demo1_1_HelloLinq
    {
        static void Main(string[] args)
        {
            string[] greetings = {"Hello world", "Hello Linq", "Hello Apress"};
            var items = from s in greetings where s.EndsWith("Linq") select s;
            foreach (var item in items)
            {
                Console.WriteLine(item);
            }
        }
    }
}
